home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Mouse Options 2.xpl < prev    next >
Text File  |  2001-08-25  |  2KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="2"
  4. "UIPATH 1"="Hardware\Mouse\General Options"
  5. "NAME"="Double Click Rectangle "
  6. "VERSION"="1.13"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Width"
  9. "TEXT 2"="Height"
  10. "DESCRIPTION 1"="You know how to perform a double click but did you know this:
  11. "DESCRIPTION 2"="There's an invisible rectangle limiting the area in which one may perform the second click. By default, the horizontal and vertical values are 4, but you can make this smaller or larger - handy if you keep moving the mouse accidently while double-clicking."
  12. "AUTHOR"="Xteq Systems (CptSiskoX)"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Tip ripped from http://www.lockergnome.com"
  16. "COMMENT 2"="Updated, fixed, corrected by CptSiskoX."
  17.  
  18.  
  19. sV1="HKEY_CURRENT_USER\Control Panel\Mouse\DoubleClickWidth"
  20. sV2="HKEY_CURRENT_USER\Control Panel\Mouse\DoubleClickHeight"
  21.  
  22. SUB Plugin_Initialize
  23.  i=RegReadValue(sV1)
  24.  SetUIElement 1,i
  25.  
  26.  i=RegReadValue(sV2)
  27.  SetUIElement 2,i
  28. END SUB
  29.  
  30. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  31.  s=GetUIElement(1)
  32.  if len(s)>0 then
  33.     Call RegWriteValue(sV1,s,1)
  34.  else
  35.     if RegValueExists(sV1) then
  36.        Call RegDeleteValue(sV1)
  37.     end if
  38.  end if
  39.  
  40.  s=GetUIElement(2)
  41.  if len(s)>0 then
  42.     Call RegWriteValue(sV2,s,1)
  43.  else
  44.     if RegValueExists(sV2) then
  45.        Call RegDeleteValue(sV2)
  46.     end if
  47.  end if
  48. END SUB
  49.  
  50. SUB Plugin_Terminate
  51. END SUB
  52.